Fix corner manipulation when growing rounded rects
authorMatthias Clasen <mclasen@redhat.com>
Tue, 12 Jan 2016 03:48:35 +0000 (22:48 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 12 Jan 2016 03:49:40 +0000 (22:49 -0500)
This addresses problems with uneven border radius',
pointed out by Lapo.

gtk/gtkroundedbox.c

index b63b7d51e5084e7aeb5d8c413532956f9dd902ed..67aed7a786ea50b90b8f9eeab912d095d75bce0e 100644 (file)
@@ -198,8 +198,8 @@ _gtk_rounded_box_grow (GtkRoundedBox *box,
     }
 
   gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_LEFT], left, top);
-  gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_RIGHT], right, bottom);
-  gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_RIGHT], right, top);
+  gtk_css_border_radius_grow (&box->corner[GTK_CSS_TOP_RIGHT], right, top);
+  gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_RIGHT], right, bottom);
   gtk_css_border_radius_grow (&box->corner[GTK_CSS_BOTTOM_LEFT], left, bottom);
 }